<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>3-7 输入框布局</title>
	</head>


	<!--
	 
	3.5  其他属性
	flex-bsis  设置弹性盒子 伸缩基准 
	flex-grow  设置弹性盒子的扩展比率
	flex-shrink  设置弹性盒子的缩小比率 
	
	
	3.6  
	flex: auto 
	
	
	flex :  flex-grow  flex-shrink flex-bsis 
		

	 -->

	<style>
		* {
			margin: 0;
			padding: 0;
			/* box-sizing: content-box; */
		}

		.container {
			
			width: 250px;

			border: 1px solid #dcdcdc;


			display: flex;
			justify-content: space-between;


		}

		.container label {
			flex: 1 1 0px;
			background-color: #f5f5f5;
			font-family: '楷体';
			text-align: center;
		}


		.container input {
			flex: 1;
			border: none;
			outline: none;
			padding: 5px;
		}

		.container label:nth-child(1) {
			flex: 0 0 50px;

		}
		
		.container label:nth-of-type(2){
			flex: 0 0 30px;
		}
	/* 	.container label:nth-child(3) {
			flex: 0 0 30px;
			/* width: 20px; */

		} */
	</style>

	<body>

		<div class="container">
			<label for="">姓名</label>
			<input type="text">
			<label for="">GO</label>
		</div>


<!-- body > div > label:nth-child(3) -->
	</body>
</html>
